package com.nancy.java_design.abstract_factory.demo1;

public class Test {
    public static void main(String[] args) {
        // 意大利风味甜点
        DessertFactory factory = new ItalyDessertFactory();
        Dessert dessert = factory.createDessert();
        dessert.show();
        Coffee coffee = factory.createCoffee();
        System.out.println(coffee.getName());

    }
}
